from django import template
from django.conf import settings
from szachy.models import FBUser

register = template.Library()

@register.inclusion_tag('szachy/_game_tag.html')
def game_tag(game):
    return {'game': game, 'MEDIA_URL': settings.MEDIA_URL}

@register.inclusion_tag('szachy/_user_info.html')
def user_info():
    return {'me': FBUser.objects.get_current()}